// 机构设置
import { axios } from '@/utils/request'
export function festivalList(params) {   //节假日
    return axios({
        url: '/school/holidays',
        method: 'post',
        data: params
    })
}
export function festivalAdd(params) {   //节假日添加
    return axios({
        url: '/school/holidays/create',
        method: 'post',
        data: params
    })
}
export function festivalEdit(params,id) {   //节假日修改
    return axios({
        url: '/school/holidays/'+id+'/update',
        method: 'post',
        data: params
    })
}
export function festivalDel(id) {   //节假日删除
    return axios({
        url: '/school/holidays/'+id+'/delete',
        method: 'post',
    })
}
export function festivalInfo(params,id) {   //节假日详情
    return axios({
        url: '/school/holidays/'+id,
        method: 'post',
        data: params
    })
}